package com.stanford.ml.naivebayes;

/**
 * Data is an information container with its count.
 * Such count is referred by Naive Bayes classifier
 * @author Fatih Sunor
 *
 */
public class Data {

	private Object _data;
	private int _count;

	public Data(Object data) {
		_data = data;
		_count = 1;
	}
	
	/**
	 * Increments the count
	 */
	public void increment() {
		_count++;
	}

	/**
	 * @return the value
	 */
	public Object getValue() {
		return _data;
	}

	/**
	 * @return the count
	 */
	public int getCount() {
		return _count;
	}
}
